//
//  PriceCell.m
//  saler-ios
//
//  Created by 王亚陆 on 17/6/6.
//  Copyright © 2017年 sayimba. All rights reserved.
//

#import "PriceCell.h"

@implementation PriceCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self){
        
        
        self.contentView.backgroundColor = WhiteColor;

        self.PriceName = [UILabel createUIlabel:@"运费" andFont:FontOfSize13 andColor:PriceColor];

        [self.contentView addSubview:self.PriceName];
        [self.PriceName mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self.contentView.mas_centerY);
            make.left.mas_equalTo(self.contentView.mas_left).with.offset(67*kWidth);
        }];
        self.PriceLabel = [UILabel createUIlabel:@"2300元" andFont:FontOfSize13 andColor:PriceColor];
        self.PriceLabel.textAlignment = NSTextAlignmentRight;
        [self.contentView addSubview:self.PriceLabel];
        [self.PriceLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self.contentView.mas_centerY);
            make.right.mas_equalTo(self.contentView.mas_right).with.offset(-58*kWidth);
        }];
        
//        UIView * Hline1 =[[UIView alloc]init];
//        Hline1.backgroundColor = GrayColor;
//        [self.contentView addSubview:Hline1];
//        [Hline1 mas_makeConstraints:^(MASConstraintMaker *make) {
//            make.right.equalTo(self.contentView.mas_right);
//            make.bottom.mas_equalTo(self.contentView.mas_bottom).with.offset(0.5*kHeight);
//            make.size.mas_equalTo(CGSizeMake(308*kWidth, 1*kHeight));
//        }];



        
        
        
    }
    return self;
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
